/* 
*   功能 : svg table公共样式表, 适用于由 mc_flash_table 构造函数创建的表格
*   类型 : 创建
*   作者 : 巫昭雯
*   时间 : 2021.9.9
*   内容 : 所有代码
*/

/*************************************** table ***************************************/
.mc_svg_head_wrap,
.mc_svg_nav_wrap,
.mc_svg {
    position: absolute;
}

.mc_svg_head {
    height: 30px;
}

.mc_svg_nav {
    width: 30px;
}


.mc_svg_container {
    border: 1px solid #eee;
    background: radial-gradient(circle, #ffffff, #f0f0f0, #dfdfdf);
    margin-top: 7px;
    height: calc(100% - 7px);
    box-sizing: border-box;
}

.mc_svg_main_wrap {
    position: absolute;
    overflow: scroll;
    box-sizing: border-box;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    top: 30px;
    left: 30px;
}

.select_all_div {
    background: #eee;
    width: 30px;
    height: 30px;
    position: absolute;
    z-index: 10;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    color: #fff;
    font-size: 30px;
}

.select_cur_div::after {
    content: "*";
}


/* 滚动条封边 */
.scroll_block {
    background: #eee;
    position: absolute;
    z-index: 10;
}

.scroll_hor {
    width: 17px;
    top: 0;
    height: 30px;
    right: 0px;
}

.scroll_ver {
    width: 30px;
    bottom: 0;
    height: 16px;
    left: 0px;
}

.mc_svg_head {
    height: 30px;
    position: absolute;
    top: 0;
    left: 30px;
    z-index: 8;
    background: #eee;
}

.mc_svg_nav {
    width: 30px;
    position: absolute;
    left: 0;
    top: 30px;
    z-index: 8;
    background: #eee;
}


/* 鼠标移动主体的div */
.div_hover_content {
    color: rgb(255, 255, 255);
    text-align: center;
    position: absolute;
    background: #0002f1;
    background: #2cc3ff6b;
    /* opacity: 0.5; */
    top: 0;
    left: 0;
    display: none;
    pointer-events: none;
    box-sizing: border-box;
    -ms-touch-action: none;
    /* set for IE */
    touch-action: none;
    /* set for Edge */
    /* z-index: -2; */
}

.div_hover_head,
.div_hover_nav {
    position: absolute;
    background: #0002f1;
    background-color: #000;
    /* opacity: 0.8; */
    top: 0;
    left: 0;
    display: none;
    z-index: -1;
    pointer-events: none;
    box-sizing: border-box;
}


/* 鼠标点击主体svg生成的div */
.click_create_div {
    position: absolute;
    background: #ffcd0d;
    /* background: #ff5151; */
    opacity: 0.9;
    text-align: center;
    /* font-size: 12px; */
    /* pointer-events: none; */
    line-height: 18px;
    overflow: hidden;
    box-sizing: border-box;

    /* 取消鼠标移动时选中文字 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    color: blue;
    background: #BABD88;
    border: 2px solid #33333300;
}

.click_create_div:hover {
    cursor: pointer;
}

.click_create_div:focus {
    outline: none;
}

/* 生成块虚点模式样式 */
.click_create_div_virtual_point {
    background: gray;
}

.uncheck_focus_style:focus {
    outline: none;
}


/* 框选样式 */
.box_selection_creat_div {
    /* 使框选样式永远优先级最高 */
    /* background: #037136 !important;
    /* background-color: #3399FB !important; */
    /* color: #fff;  */
    border: 2px solid blue !important;
}


/* 框选之后外框div */
.box_selection_wrap_div {
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    /* border: 1px solid #025619; */
    display: none;
    /* z-index: 2; */
}



/* 编辑模式下选中 */
.edit_select {
    border: 2px dotted red;
    position: absolute;
    pointer-events: none;
    box-sizing: border-box;
}

/* 设置矩阵样式 */
.rect_border_right {
    stroke-dasharray: 50, 50, 100;
}

/* 头部边框 */
.rect_border_left {
    /* stroke-dasharray: 90, 30 */
    stroke-dashoffset: 0;
}

/* 侧边栏边框 */
.rect_border_top {
    stroke-dashoffset: 0;
}

/* 覆盖框选div样式 */
.box_selection_wrap_div {

    border-top: 2px solid #025619;
    border-left: 2px solid #025619;
    box-sizing: border-box;

}

.box_selection_wrap_div:after {
    content: "";
    position: absolute;
    bottom: 0;
    height: 2px;
    width: attr(data-width);
    background-color: #025619;
}


.drag_virtual_div {
    position: absolute;
    border: 2px solid #025619;
    box-sizing: border-box;
    pointer-events: none;
    text-align: center;
    z-index: 8;
}



.pos_box_div {
    max-width: 120px;
    margin-right: 5px;
    flex-grow: 1;
}

#form_box,
.form_box {
    position: relative;
    overflow: hidden;
    height: 100%;
    border: #c0c0c0 solid 1px;
    background: #eee;
    box-sizing: border-box;
}

/* 块数据变动提示动画 */
.block_val_chg_animation {
    opacity: 0.5;
    animation: multiple_val_chg 0.1s;
    -webkit-animation: multiple_val_chg 0.1s;
    /* Safari 与 Chrome */
}


/* 多个数据变动时动画 */
@keyframes multiple_val_chg {
    from {
        /* background: red; */
        color: #fff;
    }

    to {
        /* background: blue; */
        color: #000000;
    }
}

.text_svg {
    font-size: 12px;
}

.text_wrap {
    font-size: 12px;
    /* font-weight: 500; */
    position: absolute;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    /* border: 1px solid #33333350; */
}


/**************************************** monitor ***********************************************/
.div_text {
    width: 100%;
    height: 18px;
    line-height: 22px;
}